package cn.xiaolang.function.json;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonGetField {
	public static void main(String[] args) throws JSONException {
			String httpGet = "{'ent_name':{'name':'xiaolang'},'ent_naming':'dd','ent_naming_unit':'fff','ent_escription':'赛事简介'}";
			JSONObject jsonObject = new JSONObject(httpGet);
			JSONObject entName = jsonObject.getJSONObject("ent_name");
			System.out.println(entName.toString());
			System.out.println(entName.optString("name"));
		}
}

